<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CUTLASS: cutlass::half_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="cutlass-logo-small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CUTLASS
   </div>
   <div id="projectbrief">CUDA Templates for Linear Algebra Subroutines and Solvers</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecutlass.html">cutlass</a></li><li class="navelem"><a class="el" href="structcutlass_1_1half__t.html">half_t</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structcutlass_1_1half__t-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cutlass::half_t Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>IEEE half-precision floating-point type.  
</p>

<p><code>#include &lt;<a class="el" href="half_8h_source.html">half.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af51056b4916dfea5b3621cdeddab67e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#af51056b4916dfea5b3621cdeddab67e9">half_t</a> ()</td></tr>
<tr class="memdesc:af51056b4916dfea5b3621cdeddab67e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#af51056b4916dfea5b3621cdeddab67e9">More...</a><br /></td></tr>
<tr class="separator:af51056b4916dfea5b3621cdeddab67e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25f60fd3977cd11e26819cc1d3b0dc07"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a25f60fd3977cd11e26819cc1d3b0dc07">half_t</a> (half const &amp;x)</td></tr>
<tr class="memdesc:a25f60fd3977cd11e26819cc1d3b0dc07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reinterpret cast from CUDA's half type.  <a href="#a25f60fd3977cd11e26819cc1d3b0dc07">More...</a><br /></td></tr>
<tr class="separator:a25f60fd3977cd11e26819cc1d3b0dc07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81af113694141b181d96d81f562bb325"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a81af113694141b181d96d81f562bb325">half_t</a> (float x)</td></tr>
<tr class="memdesc:a81af113694141b181d96d81f562bb325"><td class="mdescLeft">&#160;</td><td class="mdescRight">Floating point conversion.  <a href="#a81af113694141b181d96d81f562bb325">More...</a><br /></td></tr>
<tr class="separator:a81af113694141b181d96d81f562bb325"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a4ece050c5bb376d419299c228b270e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a4a4ece050c5bb376d419299c228b270e">half_t</a> (double x)</td></tr>
<tr class="memdesc:a4a4ece050c5bb376d419299c228b270e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Floating point conversion.  <a href="#a4a4ece050c5bb376d419299c228b270e">More...</a><br /></td></tr>
<tr class="separator:a4a4ece050c5bb376d419299c228b270e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6e3d4d165819edabf8b4757d42ccf3c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#ab6e3d4d165819edabf8b4757d42ccf3c">half_t</a> (int x)</td></tr>
<tr class="memdesc:ab6e3d4d165819edabf8b4757d42ccf3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer conversion - round to nearest even.  <a href="#ab6e3d4d165819edabf8b4757d42ccf3c">More...</a><br /></td></tr>
<tr class="separator:ab6e3d4d165819edabf8b4757d42ccf3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a338d628504f733a23e69f2a60204c1b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a338d628504f733a23e69f2a60204c1b8">half_t</a> (unsigned x)</td></tr>
<tr class="memdesc:a338d628504f733a23e69f2a60204c1b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer conversion - round toward zero.  <a href="#a338d628504f733a23e69f2a60204c1b8">More...</a><br /></td></tr>
<tr class="separator:a338d628504f733a23e69f2a60204c1b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60416b7575abcb835de85be6ae56c847"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a60416b7575abcb835de85be6ae56c847">operator=</a> (half const &amp;x)</td></tr>
<tr class="memdesc:a60416b7575abcb835de85be6ae56c847"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment.  <a href="#a60416b7575abcb835de85be6ae56c847">More...</a><br /></td></tr>
<tr class="separator:a60416b7575abcb835de85be6ae56c847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46ed3fd0ec19acfd5a5019128dd83557"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a46ed3fd0ec19acfd5a5019128dd83557">operator float</a> () const </td></tr>
<tr class="memdesc:a46ed3fd0ec19acfd5a5019128dd83557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts to float.  <a href="#a46ed3fd0ec19acfd5a5019128dd83557">More...</a><br /></td></tr>
<tr class="separator:a46ed3fd0ec19acfd5a5019128dd83557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5c8d2a225114cc0bc877464ab934754"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#af5c8d2a225114cc0bc877464ab934754">operator double</a> () const </td></tr>
<tr class="memdesc:af5c8d2a225114cc0bc877464ab934754"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts to float.  <a href="#af5c8d2a225114cc0bc877464ab934754">More...</a><br /></td></tr>
<tr class="separator:af5c8d2a225114cc0bc877464ab934754"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d051d2e20f89d66a9ed4f9315bf51bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a9d051d2e20f89d66a9ed4f9315bf51bd">operator int</a> () const </td></tr>
<tr class="memdesc:a9d051d2e20f89d66a9ed4f9315bf51bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts to float.  <a href="#a9d051d2e20f89d66a9ed4f9315bf51bd">More...</a><br /></td></tr>
<tr class="separator:a9d051d2e20f89d66a9ed4f9315bf51bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa24f262b2f41c17f2a118c890beb39f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#aa24f262b2f41c17f2a118c890beb39f5">operator bool</a> () const </td></tr>
<tr class="memdesc:aa24f262b2f41c17f2a118c890beb39f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Casts to bool.  <a href="#aa24f262b2f41c17f2a118c890beb39f5">More...</a><br /></td></tr>
<tr class="separator:aa24f262b2f41c17f2a118c890beb39f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a611bafed82bfd1a61057fcb500bee2b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> half&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a611bafed82bfd1a61057fcb500bee2b2">to_half</a> () const </td></tr>
<tr class="memdesc:a611bafed82bfd1a61057fcb500bee2b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bitcasts to CUDA's half type.  <a href="#a611bafed82bfd1a61057fcb500bee2b2">More...</a><br /></td></tr>
<tr class="separator:a611bafed82bfd1a61057fcb500bee2b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaee5cf278f88e1de09cbebf8cdd2cbe8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> uint16_t &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#aaee5cf278f88e1de09cbebf8cdd2cbe8">raw</a> ()</td></tr>
<tr class="memdesc:aaee5cf278f88e1de09cbebf8cdd2cbe8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses raw internal state.  <a href="#aaee5cf278f88e1de09cbebf8cdd2cbe8">More...</a><br /></td></tr>
<tr class="separator:aaee5cf278f88e1de09cbebf8cdd2cbe8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46379df65c25c4d05d8520430d2daf19"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a46379df65c25c4d05d8520430d2daf19">raw</a> () const </td></tr>
<tr class="memdesc:a46379df65c25c4d05d8520430d2daf19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses raw internal state.  <a href="#a46379df65c25c4d05d8520430d2daf19">More...</a><br /></td></tr>
<tr class="separator:a46379df65c25c4d05d8520430d2daf19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada2fd6f45d4d91f334b65728ca720d40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#ada2fd6f45d4d91f334b65728ca720d40">signbit</a> () const </td></tr>
<tr class="memdesc:ada2fd6f45d4d91f334b65728ca720d40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the sign bit.  <a href="#ada2fd6f45d4d91f334b65728ca720d40">More...</a><br /></td></tr>
<tr class="separator:ada2fd6f45d4d91f334b65728ca720d40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4cc765866681df569fedd1439cf5477"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#aa4cc765866681df569fedd1439cf5477">exponent_biased</a> () const </td></tr>
<tr class="memdesc:aa4cc765866681df569fedd1439cf5477"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the biased exponent.  <a href="#aa4cc765866681df569fedd1439cf5477">More...</a><br /></td></tr>
<tr class="separator:aa4cc765866681df569fedd1439cf5477"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76ce79fa7b4e3e993465a50615eb046f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a76ce79fa7b4e3e993465a50615eb046f">exponent</a> () const </td></tr>
<tr class="memdesc:a76ce79fa7b4e3e993465a50615eb046f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the unbiased exponent.  <a href="#a76ce79fa7b4e3e993465a50615eb046f">More...</a><br /></td></tr>
<tr class="separator:a76ce79fa7b4e3e993465a50615eb046f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad21f512b39dff2e51e6fc2bf0ae2ebcf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#ad21f512b39dff2e51e6fc2bf0ae2ebcf">mantissa</a> () const </td></tr>
<tr class="memdesc:ad21f512b39dff2e51e6fc2bf0ae2ebcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the mantissa.  <a href="#ad21f512b39dff2e51e6fc2bf0ae2ebcf">More...</a><br /></td></tr>
<tr class="separator:ad21f512b39dff2e51e6fc2bf0ae2ebcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:acb746c82bd4dd496f79b7e611e3653dd"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#acb746c82bd4dd496f79b7e611e3653dd">bitcast</a> (uint16_t x)</td></tr>
<tr class="memdesc:acb746c82bd4dd496f79b7e611e3653dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs from an unsigned short.  <a href="#acb746c82bd4dd496f79b7e611e3653dd">More...</a><br /></td></tr>
<tr class="separator:acb746c82bd4dd496f79b7e611e3653dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c472ad52970df8b6f5c05beff66ff9f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a4c472ad52970df8b6f5c05beff66ff9f">convert</a> (float const &amp;flt)</td></tr>
<tr class="memdesc:a4c472ad52970df8b6f5c05beff66ff9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">FP32 -&gt; FP16 conversion - rounds to nearest even.  <a href="#a4c472ad52970df8b6f5c05beff66ff9f">More...</a><br /></td></tr>
<tr class="separator:a4c472ad52970df8b6f5c05beff66ff9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cddd98cc0650a0fcc5ff1ea0cb08fcf"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a1cddd98cc0650a0fcc5ff1ea0cb08fcf">convert</a> (int const &amp;n)</td></tr>
<tr class="memdesc:a1cddd98cc0650a0fcc5ff1ea0cb08fcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">FP32 -&gt; FP16 conversion - rounds to nearest even.  <a href="#a1cddd98cc0650a0fcc5ff1ea0cb08fcf">More...</a><br /></td></tr>
<tr class="separator:a1cddd98cc0650a0fcc5ff1ea0cb08fcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af4af16ddbbfcefde206c29cac5c1ec"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a6af4af16ddbbfcefde206c29cac5c1ec">convert</a> (unsigned const &amp;n)</td></tr>
<tr class="memdesc:a6af4af16ddbbfcefde206c29cac5c1ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">FP32 -&gt; FP16 conversion - rounds to nearest even.  <a href="#a6af4af16ddbbfcefde206c29cac5c1ec">More...</a><br /></td></tr>
<tr class="separator:a6af4af16ddbbfcefde206c29cac5c1ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ef78c3a7ccd316fc4fe52b7c230f87b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#a5ef78c3a7ccd316fc4fe52b7c230f87b">convert</a> (<a class="el" href="structcutlass_1_1half__t.html">half_t</a> const &amp;x)</td></tr>
<tr class="memdesc:a5ef78c3a7ccd316fc4fe52b7c230f87b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a half-precision value stored as a uint16_t to a float.  <a href="#a5ef78c3a7ccd316fc4fe52b7c230f87b">More...</a><br /></td></tr>
<tr class="separator:a5ef78c3a7ccd316fc4fe52b7c230f87b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aad304a745b6a4c88383e51a498e751fb"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1half__t.html#aad304a745b6a4c88383e51a498e751fb">storage</a></td></tr>
<tr class="memdesc:aad304a745b6a4c88383e51a498e751fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Storage type.  <a href="#aad304a745b6a4c88383e51a498e751fb">More...</a><br /></td></tr>
<tr class="separator:aad304a745b6a4c88383e51a498e751fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af51056b4916dfea5b3621cdeddab67e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::half_t </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a25f60fd3977cd11e26819cc1d3b0dc07"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::half_t </td>
          <td>(</td>
          <td class="paramtype">half const &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a81af113694141b181d96d81f562bb325"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::half_t </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4a4ece050c5bb376d419299c228b270e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::half_t </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab6e3d4d165819edabf8b4757d42ccf3c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::half_t </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a338d628504f733a23e69f2a60204c1b8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::half_t </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="acb746c82bd4dd496f79b7e611e3653dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a> cutlass::half_t::bitcast </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4c472ad52970df8b6f5c05beff66ff9f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a> cutlass::half_t::convert </td>
          <td>(</td>
          <td class="paramtype">float const &amp;&#160;</td>
          <td class="paramname"><em>flt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1cddd98cc0650a0fcc5ff1ea0cb08fcf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a> cutlass::half_t::convert </td>
          <td>(</td>
          <td class="paramtype">int const &amp;&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6af4af16ddbbfcefde206c29cac5c1ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a> cutlass::half_t::convert </td>
          <td>(</td>
          <td class="paramtype">unsigned const &amp;&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5ef78c3a7ccd316fc4fe52b7c230f87b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> float cutlass::half_t::convert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1half__t.html">half_t</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a76ce79fa7b4e3e993465a50615eb046f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> int cutlass::half_t::exponent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa4cc765866681df569fedd1439cf5477"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> int cutlass::half_t::exponent_biased </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad21f512b39dff2e51e6fc2bf0ae2ebcf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> int cutlass::half_t::mantissa </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa24f262b2f41c17f2a118c890beb39f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af5c8d2a225114cc0bc877464ab934754"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::operator double </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a46ed3fd0ec19acfd5a5019128dd83557"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::operator float </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9d051d2e20f89d66a9ed4f9315bf51bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::half_t::operator int </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a60416b7575abcb835de85be6ae56c847"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1half__t.html">half_t</a>&amp; cutlass::half_t::operator= </td>
          <td>(</td>
          <td class="paramtype">half const &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aaee5cf278f88e1de09cbebf8cdd2cbe8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> uint16_t&amp; cutlass::half_t::raw </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a46379df65c25c4d05d8520430d2daf19"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> uint16_t cutlass::half_t::raw </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ada2fd6f45d4d91f334b65728ca720d40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> bool cutlass::half_t::signbit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a611bafed82bfd1a61057fcb500bee2b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> half cutlass::half_t::to_half </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aad304a745b6a4c88383e51a498e751fb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t cutlass::half_t::storage</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="half_8h_source.html">half.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
